﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.Common;
using Ledict.ConditionExtract.DAL;
using Ledict.ConditionExtract.Model;

namespace Ledict.ConditionExtract.BLL
{
    /// <summary>
    /// 法定刑幅度档次表相关操作
    /// </summary>
    public class XF_RelatStatus_GroupBLL
    {
        XF_RelatStatus_GroupDAL dal = new XF_RelatStatus_GroupDAL();

        /// <summary>
        /// 增加一条数据
        /// </summary>
        public bool Add(XF_RelatStatus_GroupModel model)
        {
            return dal.Add(model);
        }

        /// <summary>
        /// 删除一条数据
        /// </summary>
        public bool Delete(string rgId)
        {
            return dal.Delete(rgId);
        }

        /// <summary>
        /// 获取情形数据
        /// </summary>
        /// <param name="ccid">节点信息</param>
        /// <returns></returns>
        public DataTable GetQxData(string ccid)
        {
            return dal.GetQxData(ccid);
        }

        /// <summary>
        /// 获取节点是否被引用组合情形
        /// </summary>
        public DataTable GetGroupCount(string ccId)
        {
            return dal.GetGroupCount(ccId);
        }

        /// <summary>
        /// 判断单一情形是否已经存在
        /// </summary>
        public string GetQxOldData(string ccid, string pgGrade, string situationTypeId)
        {
            return this.dal.GetQxOldData(ccid, pgGrade, situationTypeId);
        }



    }
}
